export interface stateType {
    arr1: (string|number)[]
}
const state : {
    actionsName: {
        [k:string]:string
    }
    state:stateType
    actions:{
        [k:string]:Function
        arr_push:Function
        arr_push2:Function
    }
} = {
    actionsName:{},
    state: {
        arr1: [1,"二",3]
    },
    actions:{
        arr_push(newState:stateType,action:any){
            newState.arr1.push("你好")
        },
        arr_push1(newState:stateType,action:any){
            newState.arr1.push("666")
        },
        arr_push2(newState:stateType,action:any){
            newState.arr1.push(action.s)
        }
    }
}
let actionsName:{[k:string]:string} = {}
for (const key in state.actions) {
    actionsName[key] = key
}
state.actionsName = actionsName

export default state
